package com.tom.architect.day01.simple5.simple6;

import android.content.Context;

import com.tom.architect.day01.simple5.simple6.framework.HttpCallBack;

import java.util.Map;

/**
 * Created by Tom on 2023/12/05.
 * 开闭原则：新增接口
 */
public interface IHttpRequest {
     void get(Context context, String url, Map<String, Object> params,
                 final HttpCallBack callback, final boolean cache);
     void post(Context context, String url, Map<String, Object> params,
                  final HttpCallBack callback, final boolean cache);

    // 下载，上传
     void download(Context context, String url, Map<String, Object> params,
                      final HttpCallBack callback);
     void upload(Context context, String url, Map<String, Object> params,
                    final HttpCallBack callback);

}
